package jaux.tank.bean.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jaux.tank.utils.factory.Page;
import lombok.Data;

@Schema
@Data
public class PageRequestModel {

	@Schema(description = "每页大小", defaultValue = ""+Page.DEFAULT_PAGE_SIZE)
	private int limit;
	
	@Schema(description = "偏移量,与“当前页”选择一项使用")
	private int offset;
	
	@Schema(description = "当前页,与“偏移量”选择一项使用", defaultValue = ""+Page.DEFAULT_PAGE_NO)
	private int page;
	
	@Schema(description = "排序字段")
	private String sort;
	
	@Schema(description = "排序方式", allowableValues = "asc,desc")
	private String order;

}
